package hu.arguscab.ai;


/**
 *
 * @param <T> The data type that <code>Node</code> contain. 
 * @author sharp
 */
public class Node<T> {

	T data;
	int depth;

	public Node() {
		this.data = null;
	}

	public Node(T data) {
		this.data = data;
	}

	public T getData() {
		return data;
	}

	public void setData(T d) {
		this.data = d;
	}

	public int getDepth() {
		return depth;
	}

	public void setDepth(int depth) {
		this.depth = depth;
	}

	@Override
	public String toString() {
		return data.toString();
	}
}
